<?php
session_start();
mysql_connect("localhost", "sapmenet_admin", "a1s2d3f4g5h6j7") or die ("Problem with datebase");
mysql_select_db("sapmenet_users");
$city=$_POST['city'];
$city=htmlspecialchars($city);
$city=mysql_real_escape_string($city);
$info=$_POST['info'];
$info=htmlspecialchars($info);
$info=mysql_real_escape_string($info);
//mysql_query("UPDATE users SET `city`='{$city}', `info`='{$info}' WHERE ID=$_SESSION['JID']");
$query = mysql_query("UPDATE users SET city='{$city}', info='{$info}' WHERE ID={$_SESSION['JID']}"); 
header ("Location: http://sapme.net/Framework/profilePage.php?id={$_SESSION['JID']}")
?>